package com.gljr.autotest.tool;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;

public class Html5Tool {
	public void canvas(WebDriver driver, String id) {
		WebElement canvas = driver.findElement(By.id(id));
		System.out.println("canvas---->" + canvas);
		new Actions(driver).clickAndHold(canvas).moveByOffset(-100, 0).moveByOffset(100, 0).release().perform();
	}
}
